//
//  TopView.m
//  DaDaBao
//
//  Created by admin on 15/8/13.
//  Copyright (c) 2015年 User. All rights reserved.
//

#import "TopView.h"

@implementation TopView


- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self)
    {
        self.backgroundColor = [UIColor hexStringToColor:COLOR_VALUE];
    }
    return self;
}
-(void)setTitile:(NSString *)title
{
   UILabel * titleLab = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 20.0f, SCREEN_WIDTH, 44.0f)];
   titleLab.textColor = [UIColor whiteColor];
   titleLab.font = [UIFont boldSystemFontOfSize:20.0f];
   titleLab.textColor = [UIColor whiteColor];
   titleLab.text = title;
   titleLab.textAlignment = NSTextAlignmentCenter;
   [self addSubview:titleLab];
}


@end
